home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Camelot / Camelot 043 (1989-06)(Swedish User Group of Amiga)(SE)(PD)[WB].zip / Camelot 043 (1989-06)(Swedish User Group of Amiga)(SE)(PD)[WB].adf / zc / param.h < prev    next >
C/C++ Source or Header  |  1989-03-08  |  2KB  |  96 lines

  1. /* Copyright (c) 1988 by Sozobon, Limited.  Author: Johann Ruegg
  2.  *
  3.  * Permission is granted to anyone to use this software for any purpose
  4.  * on any computer system, and to redistribute it freely, with the
  5.  * following restrictions:
  6.  * 1) No charge may be made other than reasonable charges for reproduction.
  7.  * 2) Modified versions must be clearly marked as such.
  8.  * 3) The authors are not responsible for any harmful consequences
  9.  *    of using this software, even if they result from defects in it.
  10.  *
  11.  *    param.h
  12.  *
  13.  *    basic parameters
  14.  */
  15.  
  16. #ifndef MMCC
  17. #define MMCC    0
  18. #endif
  19.  
  20. #ifndef CC68
  21. #define CC68    0
  22. #endif
  23.  
  24. #ifndef dLibs
  25. #define dLibs    0
  26. #endif
  27.  
  28. #undef NULL
  29. #define NULL 0L
  30.  
  31. #define ENUMS    1    /* define if host compiler can do enums */
  32. #define DEBUG    1
  33.  
  34. #define NHASH    32
  35.  
  36. #define ROPEN    "r"
  37. #define WOPEN    "w"
  38. #define FLTFORM "%.3g"
  39.  
  40. #define MAXSTR    256
  41. #define MAXINCL 10
  42. #define NMSIZE    12    /* must be at least 12 */
  43. #define NMXSIZE    32
  44.  
  45. /* sizes of basic types */
  46. #ifndef NOLONGS
  47. #define SIZE_C    1    /* char */
  48. #define SIZE_I    2    /* int */
  49. #define SIZE_S    2    /* short */
  50. #define SIZE_L    4    /* long */
  51. #define SIZE_U    2    /* unsigned */
  52. #define SIZE_F    4    /* float */
  53. #define SIZE_D    4    /* double */
  54. #define SIZE_P    4    /* pointer */
  55. #define MAXINT    0x7fffL
  56. #define MININT    -0x8000
  57. #define MAXUNS    0xffffL
  58. #else
  59. #define SIZE_C    1    /* char */
  60. #define SIZE_I    4    /* int */
  61. #define SIZE_S    2    /* short */
  62. #define SIZE_L    4    /* long */
  63. #define SIZE_U    4    /* unsigned */
  64. #define SIZE_F    4    /* float */
  65. #define SIZE_D    4    /* double */
  66. #define SIZE_P    4    /* pointer */
  67. #define MAXINT    0x7fffffff
  68. #endif
  69.  
  70. /* alignment requirements */
  71. #define ALN_C    0    /* char */
  72. #define ALN_I    1    /* int */
  73. #define ALN_S    1    /* short */
  74. #define ALN_L    1    /* long */
  75. #define ALN_U    1    /* unsigned */
  76. #define ALN_F    1    /* float */
  77. #define ALN_D    1    /* double */
  78. #define ALN_P    1    /* pointer */
  79.  
  80. #define STACKALN 1
  81.  
  82. /* usage for registers */
  83. #define DRV_START    3
  84. #define DRV_END        7
  85. #define AREG        8
  86. #define ARV_START    AREG+3
  87. #define ARV_END        AREG+5
  88.  
  89. /* definition of stack frame */
  90. #define ARG_BASE    8
  91. #define LOC_BASE    0
  92.  
  93. /* need for own buffers (ALCYON hack ) ? */
  94. #define NEEDBUF        0
  95.  
  96.